package com.mmd.openfire_admin.generator.pojo;

import java.util.ArrayList;
import java.util.List;

public class FpagentsessionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FpagentsessionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSessionidIsNull() {
            addCriterion("sessionID is null");
            return (Criteria) this;
        }

        public Criteria andSessionidIsNotNull() {
            addCriterion("sessionID is not null");
            return (Criteria) this;
        }

        public Criteria andSessionidEqualTo(String value) {
            addCriterion("sessionID =", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotEqualTo(String value) {
            addCriterion("sessionID <>", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidGreaterThan(String value) {
            addCriterion("sessionID >", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidGreaterThanOrEqualTo(String value) {
            addCriterion("sessionID >=", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLessThan(String value) {
            addCriterion("sessionID <", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLessThanOrEqualTo(String value) {
            addCriterion("sessionID <=", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidLike(String value) {
            addCriterion("sessionID like", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotLike(String value) {
            addCriterion("sessionID not like", value, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidIn(List<String> values) {
            addCriterion("sessionID in", values, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotIn(List<String> values) {
            addCriterion("sessionID not in", values, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidBetween(String value1, String value2) {
            addCriterion("sessionID between", value1, value2, "sessionid");
            return (Criteria) this;
        }

        public Criteria andSessionidNotBetween(String value1, String value2) {
            addCriterion("sessionID not between", value1, value2, "sessionid");
            return (Criteria) this;
        }

        public Criteria andAgentjidIsNull() {
            addCriterion("agentJID is null");
            return (Criteria) this;
        }

        public Criteria andAgentjidIsNotNull() {
            addCriterion("agentJID is not null");
            return (Criteria) this;
        }

        public Criteria andAgentjidEqualTo(String value) {
            addCriterion("agentJID =", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidNotEqualTo(String value) {
            addCriterion("agentJID <>", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidGreaterThan(String value) {
            addCriterion("agentJID >", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidGreaterThanOrEqualTo(String value) {
            addCriterion("agentJID >=", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidLessThan(String value) {
            addCriterion("agentJID <", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidLessThanOrEqualTo(String value) {
            addCriterion("agentJID <=", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidLike(String value) {
            addCriterion("agentJID like", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidNotLike(String value) {
            addCriterion("agentJID not like", value, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidIn(List<String> values) {
            addCriterion("agentJID in", values, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidNotIn(List<String> values) {
            addCriterion("agentJID not in", values, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidBetween(String value1, String value2) {
            addCriterion("agentJID between", value1, value2, "agentjid");
            return (Criteria) this;
        }

        public Criteria andAgentjidNotBetween(String value1, String value2) {
            addCriterion("agentJID not between", value1, value2, "agentjid");
            return (Criteria) this;
        }

        public Criteria andJointimeIsNull() {
            addCriterion("joinTime is null");
            return (Criteria) this;
        }

        public Criteria andJointimeIsNotNull() {
            addCriterion("joinTime is not null");
            return (Criteria) this;
        }

        public Criteria andJointimeEqualTo(String value) {
            addCriterion("joinTime =", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeNotEqualTo(String value) {
            addCriterion("joinTime <>", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeGreaterThan(String value) {
            addCriterion("joinTime >", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeGreaterThanOrEqualTo(String value) {
            addCriterion("joinTime >=", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeLessThan(String value) {
            addCriterion("joinTime <", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeLessThanOrEqualTo(String value) {
            addCriterion("joinTime <=", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeLike(String value) {
            addCriterion("joinTime like", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeNotLike(String value) {
            addCriterion("joinTime not like", value, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeIn(List<String> values) {
            addCriterion("joinTime in", values, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeNotIn(List<String> values) {
            addCriterion("joinTime not in", values, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeBetween(String value1, String value2) {
            addCriterion("joinTime between", value1, value2, "jointime");
            return (Criteria) this;
        }

        public Criteria andJointimeNotBetween(String value1, String value2) {
            addCriterion("joinTime not between", value1, value2, "jointime");
            return (Criteria) this;
        }

        public Criteria andLefttimeIsNull() {
            addCriterion("leftTime is null");
            return (Criteria) this;
        }

        public Criteria andLefttimeIsNotNull() {
            addCriterion("leftTime is not null");
            return (Criteria) this;
        }

        public Criteria andLefttimeEqualTo(String value) {
            addCriterion("leftTime =", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeNotEqualTo(String value) {
            addCriterion("leftTime <>", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeGreaterThan(String value) {
            addCriterion("leftTime >", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeGreaterThanOrEqualTo(String value) {
            addCriterion("leftTime >=", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeLessThan(String value) {
            addCriterion("leftTime <", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeLessThanOrEqualTo(String value) {
            addCriterion("leftTime <=", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeLike(String value) {
            addCriterion("leftTime like", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeNotLike(String value) {
            addCriterion("leftTime not like", value, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeIn(List<String> values) {
            addCriterion("leftTime in", values, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeNotIn(List<String> values) {
            addCriterion("leftTime not in", values, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeBetween(String value1, String value2) {
            addCriterion("leftTime between", value1, value2, "lefttime");
            return (Criteria) this;
        }

        public Criteria andLefttimeNotBetween(String value1, String value2) {
            addCriterion("leftTime not between", value1, value2, "lefttime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}